package cn.com.nes.mybatis.agent.system.mapper;

import cn.com.nes.mybatis.agent.system.entity.TAgentFacturer;
import cn.com.nes.site.entity.vo.distribution.DeleteDistributionRelationshipVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nes
 * @since 2023-05-30
 */
public interface TAgentFacturerMapper extends BaseMapper<TAgentFacturer> {

    void deleteRelation(String companyId);

    List<TAgentFacturer> hasAgencyRelationship(String companyId);

    void updateToDelete(DeleteDistributionRelationshipVo vo);

    List<Map<String, Object>> getBrand(String agentId);

    List<String> getManufacturerCompanyIdList(@Param("companyId") String companyId);

    List<String> queryAgentSupplierIds(@Param("callCenterCompanyId") Long callCenterCompanyId);
}
